package mbp.gui.frames;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import mbp.base.GuiFunction;
import mbp.core.ResourceUtility;
import mbp.gui.base.IListPanel;
import mbp.gui.panels.ResourceUtilityEditPanel;

public class ResourceUtilityEditor extends JFrame
{
	private JPanel contentPane;
	
	public ResourceUtilityEditor(ResourceUtility rcu, GuiFunction guiFunction, IListPanel listPanel)
	{
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 310, 277);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		ResourceUtilityEditPanel rcuEditPanel = new ResourceUtilityEditPanel(guiFunction, listPanel);
		contentPane.add(rcuEditPanel);
		rcuEditPanel.LoadUtilityFunction(rcu);
		
	}

}
